import request from '@/utils/request'

// 新增通知员工
export function addStaffList(data) {
  return request({
    url: '/system/gwnotice/addStaff',
    method: 'post',
    data: data
  })
}

// 获取员工已读未读列表
export function getStaffReadList(data) {
  return request({
    url: '/system/gwnotice/getStaffReadList',
    method: 'post',
    data: data
  })
}

// 查询通知公告列表
export function listGwnotice(query) {
  return request({
    url: '/system/gwnotice/list',
    method: 'get',
    params: query
  })
}

// 查询通知公告详细
export function getGwnotice(id) {
  return request({
    url: '/system/gwnotice/' + id,
    method: 'get'
  })
}

// 新增通知公告
export function addGwnotice(data) {
  return request({
    url: '/system/gwnotice',
    method: 'post',
    data: data
  })
}

// 修改通知公告
export function updateGwnotice(data) {
  return request({
    url: '/system/gwnotice',
    method: 'put',
    data: data
  })
}

// 删除通知公告
export function delGwnotice(id) {
  return request({
    url: '/system/gwnotice/' + id,
    method: 'delete'
  })
}
